import time
now=time.time()
print(now)

obj=time.localtime()
print(obj)
print(obj.tm_year)
print(obj.tm_mon)
print(obj.tm_mday)
print(obj.tm_hour)
print(obj.tm_min)
print(obj.tm_sec)
print(obj.tm_wday) # 0-6
print(obj.tm_yday)

print(time.ctime())
print(time.strftime('%Y-%m-%d', time.localtime()))
print(time.strftime('%H:%M:%S', time.localtime()))


print(time.strptime('2008-08-08', '%Y-%m-%d'))
time.sleep(20)
print('hello,world')